package com.zxq.uart.controller;

import com.zxq.uart.frame.decoder._2AQueryMachineEmptyResult;
import com.zxq.uart.frame.encoder._2AQueryMachineEmptyCmd;
import com.zxq.uart.result.ResultVO;
import com.zxq.uart.service.impl.PlatformExchange;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class _2AQueryMachineEmptyController extends PlatformExchange<_2AQueryMachineEmptyCmd, _2AQueryMachineEmptyResult> {


    @Override
    public Integer getCmd() {
        return 0X2A;
    }

    @PostMapping("exchange/2A")
    @Override
    public ResultVO<_2AQueryMachineEmptyResult> exchange(@RequestBody _2AQueryMachineEmptyCmd order) {
        return super.exchange(order);
    }

    @Override
    public _2AQueryMachineEmptyResult getResult() {
        return new _2AQueryMachineEmptyResult();
    }

}
